package cn.com.xiaoshoujia.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by yangrui on 2017/7/11.
 */
public class SALES {

    private static final Logger logger = LoggerFactory.getLogger(SALES.class);

    /**
     * 数据加密
     *
     * @return
     */
    public static Object encryption(HttpServletRequest request, HttpServletResponse response, Object object) {

//        response.setCharacterEncoding("utf-8");
//
//        try {
//            String callbackFunName = request.getParameter("callbackFunName");
//            if (callbackFunName != "" && callbackFunName != null) {
//                String jsonObj = new JSONObject().fromObject(object).toString();
//                response.getWriter().write(callbackFunName + "(" + jsonObj + ")");
//                return null;
//            }
//        } catch (Exception e) {
//            logger.equals(e);
//        }
        return object;

    }
}
